<?php

    include_once("./include/connect.php");
    db_connect();


    // Start sessions and check if sessions is registered from login form, if it is true display admin data, else display that you must login
    session_start();
    if(isset($_SESSION['s_logged_n']) && $_SESSION['s_logged_n'] == 'true'){
        echo "Welcome, " . $_SESSION['s_username'] . ". | <a href=\"logout.php\">Logout</a>";
    }//if
    else {
        echo "<a href=\"form.php\">Login</a>";
    }


?>

        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        
    </body>
</html>
